#encoding: utf-8
'''
Created on 2012-4-9

@author: huangjacky
@copyright: TeamV - Group: WhutOJ
模块中遇到类主要用于记录交互信息
'''

class PyOJData(object):
    '''    
    整个运行阶段的数据
    '''
    
    def __init__(self, orequest=None, oresponse=None):
        super(PyOJData, self).__init__()
        self.__request = orequest
        self.__response = oresponse
        
    def valid(self):
        return self.request != None and self.response != None
        
    def getRequest(self):
        return self.__request
    
    def getResponse(self):
        return  self.__response
    
    def setRequest(self, value):
        self.__request = value
        
    def setResponse(self, value):
        self.__response = value
        
    request = property(getRequest, setRequest, None, None)
    response = property(getResponse, setResponse, None, None)
